﻿using System;
using Artemis;
using libtcod;

namespace RL.Components
{
    public class ScreenBuffer : Component
    {
        public readonly Size Size;
        public readonly Position Position;

        /// <summary>
        /// Initializes a new instance of the <see cref="ScreenBuffer"/> class.
        /// </summary>
        /// <param name="position">The screen position of the top right.</param>
        /// <param name="console">The console.</param>
        public ScreenBuffer(Position position, TCODConsole console)
        {
            Size = new Size(console.getWidth(), console.getHeight());
            Position = position;
            Console = console;
        }

        public TCODConsole Console { get; private set; }
    }
}